import psutil

cpu_percent = psutil.cpu_percent(interval=1)
print(f"CPU利用率: {cpu_percent}%")